cpuidle: Fix for timer_deadline==0 case
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 30 Apr 2009 09:05:00 +0000 (10:05 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 30 Apr 2009 09:05:00 +0000 (10:05 +0100)
commit7145897cfb8148cfe37b2a2dd997f72c499ed27e
tree627ad834879ee58ba3926d3f6f074daaf7bf4ec1
parentffc362fcd3384681c55f5e99e2953850324bb7d3
cpuidle: Fix for timer_deadline==0 case

After the scheduler timer became suspended before entering cpu idle
state, the percpu timer_deadline is possible to be 0, i.e. no soft
timer in the queue. This case will cause unexpected large residency
percentage in C1 for the purely idle cpu.

Signed-off-by: Wei Gang <gang.wei@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hpet.c